// 顾客预约
const express = require("express")
const Cbooking = require("../models/Cbooking")
const router = express.Router()
// 顾客预约录入表
router.post("/booking",async(req,res)=>{
    await Cbooking.create(req.body);
    res.send("预约录入成功")
})
// 获取所有顾客预约表
router.get("/booking",async(req,res)=>{
    const result=await Cbooking.find({},{
        _id:0,
        __v:0
    })
})
module.exports = router
